<?php
/**
 * Created by PhpStorm.
 * User: lee
 * Date: 2018/3/14
 * Time: 下午3:43
 */

use Biz\service\trade\OrderRefund as sOrderRefund;

class ReasonListAction extends ActionPlugin
{
    const USER_LEVEL = self::LEVEL_REGISTER;

    public function main()
    {
        $orderNo = $this->getRequest()->getQuery('order_no');
        $skuId = $this->getRequest()->getQuery('sku_id', null);
        $typeRefund = $this->getRequest()->getQuery('type_refund', null);
        $receiptStatus = $this->getRequest()->getQuery('receipt_status', null);
        $data = sOrderRefund::getRefundReasonList($orderNo,$skuId, $typeRefund, $receiptStatus);

        $this->setSuccess($data);
    }
}